package com.quan.mall.service;

import com.quan.mall.commons.vo.UmsMemberReceiveAddressVo;
import com.quan.mall.entity.UmsMemberLevel;
import com.quan.mall.entity.UmsMemberReceiveAddress;
import com.quan.commons.core.utils.PageUtils;
import com.quan.commons.core.biz.support.MyBaseService;

import java.util.List;

/**
 * 会员收货地址
 *
 * @author yhaoquan
 * @email yhaoquan@163.com
 * @date 2021-03-08 21:41:31
 */
public interface UmsMemberReceiveAddressService extends MyBaseService<UmsMemberReceiveAddress> {

    /**
     * 列表查询
     * @param vo
     * @return
     */
    public List<UmsMemberReceiveAddressVo> queryList(PageUtils pageUtils, UmsMemberReceiveAddressVo vo) ;

    /**
     * 分页查询
     * @param pageUtils
     * @param vo
     * @return
     */
    public PageUtils queryPage(PageUtils pageUtils, UmsMemberReceiveAddressVo vo);

    /**
     * 获取默认地址
     * @return
     */
    public UmsMemberReceiveAddress getDefaultAddress();

    /**
     * 修改默认地址
     * @param entity
     */
    public void changeDefault(UmsMemberReceiveAddress entity);
}

